
<?php $this->placeholder('onReady')->captureStart() ?>
    $("#<?php echo $this->id_tablesorter?>").tablesorter(
    {
        sortList: [[13,1],[0,1]],
       	headers: {
				3: {sorter:'shortDate'},
        }
        
    });
 <?php $this->placeholder('onReady')->captureEnd() ?>





<div class="contenedor_tablesorter">
<?php echo $this->anchor($this->controllerName.'/insertar','Añadir una oferta',array('class'=>'utiladd'));?>

<table id="<?php echo $this->id_tablesorter?>" width="100%" class=""> 

    <?=$this->partial('snnipet/caption.phtml',array('c'=>count($this->rows)))?>
	<thead>
		<tr>
            <th><?php echo $this->translate("Actividad");?> </th>
            <th><?php echo $this->translate("Cliente")?></th>
            <th><?php echo $this->translate("PEP");?> </th>
            <th><?php echo $this->translate("Último Comentario");?> </th>
            <th><?php echo $this->translate("Datacenter")?></th>
            <th><?php echo $this->translate("Responsable")?></th>
            <th><?php echo $this->translate("Estado")?></th>
            <th><?php echo $this->translate("Area")?></th>
            <th><?php echo $this->translate("Implantación")?></th>
            <th><?php echo $this->translate("Superficie")?> m<sup>2</sup></th>
            <th><?php echo $this->translate("Potencia")?> kW</th>
            <th><?php echo $this->translate("Coste")?></th>
            <th><?php echo $this->translate("Venta")?></th>
            <th class="configure" ></th> 
    	</tr>
        
   	
    </thead>
    <tbody>
        <?php echo $this->partialLoop($this->controllerName.'/fila.phtml', (array)$this->rows); ?>	
    </tbody>
   	<tfoot>
		<tr>
            <th colspan="9">&nbsp;</th>
            <th><?php echo $this->NumEs($this->suma["superficie"],0)?> m<sup>2</sup></th>
            <th><?php echo $this->NumEs($this->suma["potencia"],0)?> kW</th>
            <th><?php echo $this->NumEs($this->suma["coste"],0)?> €</th>
            <th><?php echo $this->NumEs($this->suma["venta"],0)?> €</th>
            <th>&nbsp;</th> 
    	</tr>
    </tfoot> 
</table>
</div>

